#if !defined(__APP_MQTT)
#define __APP_MQTT

#define MQTT_SERVER_URI "ws://192.168.51.5:1883"
#define CLIENT_ID "5f1d0672-1a68-11f0-a00b-6f88b86425ec"
#define MQTT_SUBSCRIBE_TOPIC "web_to_gateway"
#define MQTT_PUBLISH_TOPIC "gateway_to_web"
#define MQTT_QOS 1
 


/**
 * @brief 初始化mqtt
 */
int  app_mqtt_init();

/**
 * @brief 发送数据
 */
int  app_mqtt_send(char *data ,int data_len);

/**
 * @brief  向mqtt模块注册接收数据的处理回调
 */
void  app_mqtt_register_recv_callback( int (* callback)(char * ,int ));


/**
 * @brief 销毁客户端
 */
void app_mqtt_destroy();

#endif // __APP_MQTT
